package com.example.back.controller;

import com.example.back.service.WeatherForecastService;
import com.example.common.support.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author wxy
 * @Date 2021/1/13 14:16
 * @Version 1.0
 */
@RestController
@Api(tags = "")
@RequestMapping("/WeatherForecast")
public class WeatherForecastController {
    @Resource
    private WeatherForecastService weatherForecastService;

    @ApiOperation(value = "", notes = "")
    @PostMapping(value = "/Get")
    public Result<Object> Get() {
        return Result.success(weatherForecastService.Get());
    }
}
